package demo1protected;

public class Base {
    protected int a =100;

    public static void main(String[] args) {
        Base base = new Base();
        System.out.println(base.a);
    }
    public void testBase(){
        System.out.println(a);
        //同一个包同一个类可以访问
    }

}
